<?php
/*
	监听电商客订单状态变更事件
*/
defined('BY_JYA') or exit('error');
$type=$event['type'];
$order=$event['order'];
if(!$type){
	return;
}
if($type=='order'){
	//等待核销
	$order['id']=$order['orderid'];
	$this->model('model')->send_api($order);
}
if($type=='goods'){
	//商品核销
	$order['id']=$order['orderid'];
	$this->model('model')->send_api($order);
}